﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master"   EnableEventValidation="false" AutoEventWireup="true" CodeFile="PersonPop.aspx.cs" Inherits="App_Commons_CustomerSearch" Title="客户资料检索"%>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">
    function selectPerson(id,name){
         var obj = opener.window.document.getElementById('<%=Request.QueryString["ID"]%>');
         var obj2 = opener.window.document.getElementById('<%=Request.QueryString["NAME"]%>');

         if(obj!=null){
            obj.value=id;
         }
         if(obj2!=null){
            obj2.value=name;
         }

        window.close();
    }
</script>
 <cc1:comvalidator id="ComValidator1" runat="server" forecolor="Red" CheckItems-Capacity="4">
    <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtPersonId">
        <cc1:ComAbsParamsAttribute Parameter="人员编号" />
    </cc1:CheckLongAttribute>
</cc1:comvalidator>
   <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
        <div id="person" runat="server" >
        <table width="100%">
      <tr>
        <td>
		    <table class="table_border_line" style="background-color:#ffffff">
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员编号</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtPersonId" runat="server"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>					
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    人员姓名</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:TextBox ID="txtName" runat="server" MaxLength="100"></asp:TextBox></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>	
		      <tr>
			    <td style="width:90px; height: 26px;">&nbsp;</td>
			    <td style="width:120px; white-space:nowrap; height: 26px;" align="left">
                    性别</td>
			    <td align="left" style="height: 26px">
                    &nbsp;<asp:DropDownList ID="cmbSex" runat="server" DataTextField="Content" DataValueField="DictNo">
                    </asp:DropDownList></td>
			    <td align="right" style="height: 26px">&nbsp;</td>						
		      </tr>		  
           </table></td>
      </tr>
      <tr>
        <td align="center">
          <table>
             <tr>
                <td style="width:80px; height: 24px;">
                    <asp:Button ID="btnSeach" runat="server" CssClass="button1" Text="检 索" Width="100%" OnClick="btnSeach_Click"/></td>						
             </tr>
          </table>    </td>
      </tr>
    </table>

    <br/>
    <table border="0" class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript" type="text/javascript">
                (new TitleBar('MemberBar', ' 检索结果')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
    <table class="table_border_bg">
       <tr>
        <td>
            <asp:GridView ID="GridView1"   runat="server"  AutoGenerateColumns="False" Width="100%" AllowPaging="True" CssClass="GridView_table" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"   >
                <Columns>
              <asp:TemplateField HeaderText="选择" ShowHeader="False">
                        <ItemStyle CssClass="GridView_item_center" HorizontalAlign="Center" VerticalAlign="Middle" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                        <ItemTemplate>
                            <asp:ImageButton ID="selectImg" runat="server" CausesValidation="False" CommandName="Select"
                                ImageUrl="~/images/info.gif" Text="" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="人员编号" DataField="PersonId">
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="NameC" HeaderText="人员姓名" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                    <asp:BoundField DataField="SexText" HeaderText="人员性别" >
                        <ItemStyle CssClass="GridView_item_center" />
                        <HeaderStyle CssClass="GridView_head_grayblue" />
                    </asp:BoundField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            </asp:GridView>
        </td>
       </tr>	
      </table>
    </div>
</asp:Content>